package com.zsrt.java.day20161226.xww.demo3.demo4;

import java.util.Scanner;

public class Score {

	public static void demo5(int score) {
		if (score >= 90) {
			System.out.println("优");
		} else if (score >= 80) {
			System.out.println("良");
		} else if (score >= 70) {
			System.out.println("及格");
		} else {
			System.out.println("不及格");
		}
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入一个成绩");
		int score = sc.nextInt();
		demo5(score);
		sc.close();
	}
}
